package switchviz.core.alias;

import switchviz.core.SwitchVizException;

public class AliasFacade
{
	public static String getOid(String alias) throws SwitchVizException
	{
		try
		{
			return AliasTree.parseAlias(alias);
		}
		catch(Exception exception)
		{
			throw new SwitchVizException("Error resolving alias '" + alias + "'.", exception);
		}
	}
}
